package wifiunion.com.notice.utils;

public class ClickTimeSpanUtil {
	 private static long lastClickTime;   
	 
     public static boolean isFastDoubleClick() {   
         long time = System.currentTimeMillis();
         long timeD = time - lastClickTime;   
         if ( 0 < timeD && timeD < 800) {
             return true;      
         }      
         lastClickTime = time;      
         return false;      
     }   
     
     public static boolean isFastDoubleClick(long intervalTime) {   
         long time = System.currentTimeMillis();
         long timeD = time - lastClickTime;   
         if ( 0 < timeD && timeD < intervalTime) {      
             return true;      
         }      
         lastClickTime = time;      
         return false;      
     }
     
     public static boolean isFastWakeClick(long resumeTime, long currentTime,long intervalTime)
     {
         long timeD = currentTime - resumeTime;   
         if ( 0 < timeD && timeD < intervalTime) {      
             return true;      
         }      
         return false;      
     }
     
     
     public static boolean isFastDoubleClickForAlbum(long intervalTime) 
     {   
         
         long time = System.currentTimeMillis();
         long timeD = time - lastClickTime;   
         if ( 0 < timeD && timeD < intervalTime) {      
             return true;      
         }      
         lastClickTime = time;      
         return false;      
     }
}
